
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-003"></use>
                    </svg>
                    <div class="name">003</div>
                    <div class="fontclass">#icon-003</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-005"></use>
                    </svg>
                    <div class="name">005</div>
                    <div class="fontclass">#icon-005</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-006"></use>
                    </svg>
                    <div class="name">006</div>
                    <div class="fontclass">#icon-006</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-001"></use>
                    </svg>
                    <div class="name">001</div>
                    <div class="fontclass">#icon-001</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-002"></use>
                    </svg>
                    <div class="name">002</div>
                    <div class="fontclass">#icon-002</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-007"></use>
                    </svg>
                    <div class="name">007</div>
                    <div class="fontclass">#icon-007</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-008"></use>
                    </svg>
                    <div class="name">008</div>
                    <div class="fontclass">#icon-008</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-009"></use>
                    </svg>
                    <div class="name">009</div>
                    <div class="fontclass">#icon-009</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-004"></use>
                    </svg>
                    <div class="name">004</div>
                    <div class="fontclass">#icon-004</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-010"></use>
                    </svg>
                    <div class="name">010</div>
                    <div class="fontclass">#icon-010</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-012"></use>
                    </svg>
                    <div class="name">012</div>
                    <div class="fontclass">#icon-012</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-011"></use>
                    </svg>
                    <div class="name">011</div>
                    <div class="fontclass">#icon-011</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-014"></use>
                    </svg>
                    <div class="name">014</div>
                    <div class="fontclass">#icon-014</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-013"></use>
                    </svg>
                    <div class="name">013</div>
                    <div class="fontclass">#icon-013</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-016"></use>
                    </svg>
                    <div class="name">016</div>
                    <div class="fontclass">#icon-016</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-015"></use>
                    </svg>
                    <div class="name">015</div>
                    <div class="fontclass">#icon-015</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-017"></use>
                    </svg>
                    <div class="name">017</div>
                    <div class="fontclass">#icon-017</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-018"></use>
                    </svg>
                    <div class="name">018</div>
                    <div class="fontclass">#icon-018</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-019"></use>
                    </svg>
                    <div class="name">019</div>
                    <div class="fontclass">#icon-019</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-020"></use>
                    </svg>
                    <div class="name">020</div>
                    <div class="fontclass">#icon-020</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-023"></use>
                    </svg>
                    <div class="name">023</div>
                    <div class="fontclass">#icon-023</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-022"></use>
                    </svg>
                    <div class="name">022</div>
                    <div class="fontclass">#icon-022</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-021"></use>
                    </svg>
                    <div class="name">021</div>
                    <div class="fontclass">#icon-021</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-025"></use>
                    </svg>
                    <div class="name">025</div>
                    <div class="fontclass">#icon-025</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-024"></use>
                    </svg>
                    <div class="name">024</div>
                    <div class="fontclass">#icon-024</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-026"></use>
                    </svg>
                    <div class="name">026</div>
                    <div class="fontclass">#icon-026</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-028"></use>
                    </svg>
                    <div class="name">028</div>
                    <div class="fontclass">#icon-028</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-027"></use>
                    </svg>
                    <div class="name">027</div>
                    <div class="fontclass">#icon-027</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-029"></use>
                    </svg>
                    <div class="name">029</div>
                    <div class="fontclass">#icon-029</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-031"></use>
                    </svg>
                    <div class="name">031</div>
                    <div class="fontclass">#icon-031</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-030"></use>
                    </svg>
                    <div class="name">030</div>
                    <div class="fontclass">#icon-030</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-032"></use>
                    </svg>
                    <div class="name">032</div>
                    <div class="fontclass">#icon-032</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-033"></use>
                    </svg>
                    <div class="name">033</div>
                    <div class="fontclass">#icon-033</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-034"></use>
                    </svg>
                    <div class="name">034</div>
                    <div class="fontclass">#icon-034</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-035"></use>
                    </svg>
                    <div class="name">035</div>
                    <div class="fontclass">#icon-035</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-036"></use>
                    </svg>
                    <div class="name">036</div>
                    <div class="fontclass">#icon-036</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-037"></use>
                    </svg>
                    <div class="name">037</div>
                    <div class="fontclass">#icon-037</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-039"></use>
                    </svg>
                    <div class="name">039</div>
                    <div class="fontclass">#icon-039</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-038"></use>
                    </svg>
                    <div class="name">038</div>
                    <div class="fontclass">#icon-038</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-040"></use>
                    </svg>
                    <div class="name">040</div>
                    <div class="fontclass">#icon-040</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-042"></use>
                    </svg>
                    <div class="name">042</div>
                    <div class="fontclass">#icon-042</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-041"></use>
                    </svg>
                    <div class="name">041</div>
                    <div class="fontclass">#icon-041</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-043"></use>
                    </svg>
                    <div class="name">043</div>
                    <div class="fontclass">#icon-043</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-045"></use>
                    </svg>
                    <div class="name">045</div>
                    <div class="fontclass">#icon-045</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-046"></use>
                    </svg>
                    <div class="name">046</div>
                    <div class="fontclass">#icon-046</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-044"></use>
                    </svg>
                    <div class="name">044</div>
                    <div class="fontclass">#icon-044</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-048"></use>
                    </svg>
                    <div class="name">048</div>
                    <div class="fontclass">#icon-048</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-047"></use>
                    </svg>
                    <div class="name">047</div>
                    <div class="fontclass">#icon-047</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-051"></use>
                    </svg>
                    <div class="name">051</div>
                    <div class="fontclass">#icon-051</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-049"></use>
                    </svg>
                    <div class="name">049</div>
                    <div class="fontclass">#icon-049</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-050"></use>
                    </svg>
                    <div class="name">050</div>
                    <div class="fontclass">#icon-050</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-052"></use>
                    </svg>
                    <div class="name">052</div>
                    <div class="fontclass">#icon-052</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-054"></use>
                    </svg>
                    <div class="name">054</div>
                    <div class="fontclass">#icon-054</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-053"></use>
                    </svg>
                    <div class="name">053</div>
                    <div class="fontclass">#icon-053</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-055"></use>
                    </svg>
                    <div class="name">055</div>
                    <div class="fontclass">#icon-055</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-057"></use>
                    </svg>
                    <div class="name">057</div>
                    <div class="fontclass">#icon-057</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-056"></use>
                    </svg>
                    <div class="name">056</div>
                    <div class="fontclass">#icon-056</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-058"></use>
                    </svg>
                    <div class="name">058</div>
                    <div class="fontclass">#icon-058</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-060"></use>
                    </svg>
                    <div class="name">060</div>
                    <div class="fontclass">#icon-060</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-059"></use>
                    </svg>
                    <div class="name">059</div>
                    <div class="fontclass">#icon-059</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-063"></use>
                    </svg>
                    <div class="name">063</div>
                    <div class="fontclass">#icon-063</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-062"></use>
                    </svg>
                    <div class="name">062</div>
                    <div class="fontclass">#icon-062</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-061"></use>
                    </svg>
                    <div class="name">061</div>
                    <div class="fontclass">#icon-061</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-064"></use>
                    </svg>
                    <div class="name">064</div>
                    <div class="fontclass">#icon-064</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-065"></use>
                    </svg>
                    <div class="name">065</div>
                    <div class="fontclass">#icon-065</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-066"></use>
                    </svg>
                    <div class="name">066</div>
                    <div class="fontclass">#icon-066</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-069"></use>
                    </svg>
                    <div class="name">069</div>
                    <div class="fontclass">#icon-069</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-068"></use>
                    </svg>
                    <div class="name">068</div>
                    <div class="fontclass">#icon-068</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-071"></use>
                    </svg>
                    <div class="name">071</div>
                    <div class="fontclass">#icon-071</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-067"></use>
                    </svg>
                    <div class="name">067</div>
                    <div class="fontclass">#icon-067</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-070"></use>
                    </svg>
                    <div class="name">070</div>
                    <div class="fontclass">#icon-070</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-072"></use>
                    </svg>
                    <div class="name">072</div>
                    <div class="fontclass">#icon-072</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-073"></use>
                    </svg>
                    <div class="name">073</div>
                    <div class="fontclass">#icon-073</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-074"></use>
                    </svg>
                    <div class="name">074</div>
                    <div class="fontclass">#icon-074</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
